ADP\BaseVersion\Includes\CartProcessor\CartProcessor D

Total Complexity 221
Dependencies 44
Dependents 8
Total lines 1,539
Lines of code 993
Logical lines of code 624
Comment lines 244
Methods 35
Properties 27

Methods 35

Method Rating Maintainability Complexity Lines of code
process()
D
13
69 307
__construct()
A
38 14 68
getAmountSavedOnlyBePricing()
A
42 15 50
addCommonItems()
A
36 12 93
eliminateClones()
A
43 12 54
calculateFreeProductsMapping()
A
42 10 51
postApplyProcess()
A
49 8 33
getProductPriceDependsOnPriceMode()
A
50 8 26
addFreeItems()
A
44 6 48
insertRegularTotals()
S
54 6 20
addNoticeIfNotExists()
S
58 6 15
replaceCouponSuccessNotices()
S
51 5 28
deleteAllPricingDataFromCart()
S
54 5 20
notifyAboutAddedFreeItems()
S
61 5 12
processFreeItems()
S
58 4 16
syncCartItemHashes()
S
63 5 10
isAdpCoupon()
S
62 4 10
normalizeCart()
S
63 4 10
processAutoAddItems()
S
61 3 12
installActionFirstProcess()
S
61 2 14
addNoticeAddedFreeProduct()
S
59 1 15
sanitizeWcCart()
S
68 2 7
filterCheckCartItemExistenceBeforeUpdate()
S
70 2 6
applyTotals()
S
69 2 7
withContext()
S
61 1 14
addNoticeRemovedFreeProduct()
S
62 1 11
setProductPriceDependsOnPriceMode()
S
80 1 3
installActionFirstProcess_Blocks()
S
82 1 3
getWcNoFilterWorker()
S
82 1 3
modifySession()
S
66 1 9
modifySessionIfCartIsEmpty()
S
73 1 5
getListener()
S
82 1 3
withCart()
S
81 1 3
isAdpCouponCode()
S
75 1 4
getCommonItemsFromCart()
S
79 1 3